/*
** 103.h for  in /home/jousse_f//afs/rendu/math/103interpol
** 
** Made by florian jousseau
** Login   <jousse_f@epitech.net>
** 
** Started on  Tue Mar  1 13:49:17 2011 florian jousseau
** Last update Tue Mar  1 18:08:00 2011 florian jousseau
*/

#ifndef	_103_H_
#define	_103_H_

#include <stdlib.h>
#include <stdio.h>
#include "mlx.h"

typedef	struct	s_number
{
  double	x[6];
  double	y[6];
}		t_number;

typedef	struct	s_pos
{
  void		*mlx_ptr;
  void		*win_ptr;
  double	pos_x[90001];
  double	pos_y[90001];
}		t_pos;

void	describe_numbers(t_number *nb);
void	describe_point(int pos_x, int pos_y);
void	init_numbers(t_number *nb);
void	init_pos(t_number *nb, t_pos *pos);
double	algo_lagrange(t_number *nb, double x);
int	axe_x(t_pos *param);
int	axe_y(t_pos *param);
int	gere_key(int keycode);
int	axes();
int    	main();
int	tiret_y(t_pos *param);
int	aff_croix(t_pos *param, int x, int y);
void	aff_croix1(t_pos *param);
void	aff_croix2(t_pos *param);
void	aff_croix3(t_pos *param);
int	aff_pos(t_pos *param);

#endif
